    //
    //  EJSCategoryTableViewCell.m
    //  EnjoyShoppingStreet
    //
    //  Created by lifayu on 2017/12/14.
    //  Copyright © 2017年 lifayu. All rights reserved.
    //

#import "EJSCategoryTableViewCell.h"

@interface EJSCategoryTableViewCell()

@property (weak, nonatomic) IBOutlet UIView *selecedView;

@end


@implementation EJSCategoryTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
        // Initialization code
    [self setSelectionStyle:UITableViewCellSelectionStyleNone];
    self.categoryNameLabel.highlightedTextColor = AppMainColor;
    self.categoryNameLabel.textColor = AppTextColor;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    if(selected){
        self.selecedView.hidden = NO;
            //        self.categoryNameLabel.textColor = UIColorFromRGB(0x3C4151);
        [self.categoryNameLabel setHighlighted:YES];
        self.categoryNameLabel.font =  [UIFont fontWithName:@"PingFangSC-Medium" size:14];
        self.backgroundColor = UIColor.whiteColor;
    }
    else
      {
        self.selecedView.hidden = YES;
        [self.categoryNameLabel setHighlighted:NO];
        self.categoryNameLabel.font =  [UIFont fontWithName:@"PingFangSC-Regular" size:14];
        self.backgroundColor = UIColorFromRGB(0xF5F5F5);
      }
}

@end
